/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package riteservices.model.dao;

import java.util.List;
import riteservices.model.bean.Rating;

/**
 *
 * @author sixviv
 */
public class RatingDAO extends GeneralDAO<Rating>{

    public Rating getRaitinById(int id){
        List<Rating> users = search("idRating="+id,Rating.class);
        if(!users.isEmpty()){
            return users.get(0);
        }else{
            return null;
        }
    }

}
